﻿using Basefr.Attributes;
using Paas.Core.Const.Enums;
using Paas.Core.Meta.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.Core.MetaEnums.Entities
{
    /// <summary>
    /// Enum表
    /// </summary>
    [MainTable(nameof(MetaEnum))]
    public class MetaEnum : BaseEntity
    {
        /// <summary>
        /// 编码
        /// </summary>
        [MaxLength(32)]
        public string Code { get; set; }
        /// <summary>
        /// 中文名称
        /// </summary>
        [MaxLength(64)]
        public string Name { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [MaxLength(256)]
        public string Description { get; set; }

        /// <summary>
        /// 元数据对象的状态
        /// </summary>
        public MetaStatus? CurrentStatus { get; set; }

        /// <summary>
        /// 是否公开，默认false;公开，则每个应用都可以看到并添加此项
        /// </summary>
        [DefaultValue(false)]
        public bool? IsPublic { get; set; }

        /// <summary>
        /// 应用id
        /// </summary>
        public int? ApplicationId { get; set; }
    }
}
